package com.xinqi.modules.sys.textbook.dto.rsp;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 云课本章节目录-响应对象
 *
 * @author: linkai
 * @date: 2023/04/25
 */
@Data
@Schema(description = "云课本章节目录-响应对象")
public class CloudTextbookCatalogResultDTO implements Serializable {
    /**
     * 主键
     */
    @Schema(description = "主键", example = "")
    private Long id;
    /**
     * 创建者
     */
    @Schema(description = "创建者", example = "")
    private Long createBy;
    /**
     * 创建时间
     */
    @Schema(description = "创建时间", example = "")
    private LocalDateTime createTime;
    /**
     * 云课本id
     */
    @Schema(description = "云课本id", example = "")
    private Long cloudTextbookId;
    /**
     * 名称
     */
    @Schema(description = "名称", example = "")
    private String name;
    /**
     * 排序
     */
    @Schema(description = "排序", example = "")
    private Integer sort;
    /**
     * 顶级父id
     */
    @Schema(description = "顶级父id", example = "")
    private Long sid;
    /**
     * 父id
     */
    @Schema(description = "父id", example = "")
    private Long pid;
    /**
     * 文件路径，例如：/xxx/xxx
     */
    @Schema(description = "文件路径，例如：/xxx/xxx", example = "")
    private String path;
    /**
     * 路径层级
     */
    @Schema(description = "路径层级", example = "")
    private Integer level;
    /**
     * 备注
     */
    @Schema(description = "备注", example = "")
    private String remark;

    @Schema(description = "子节点列表", example = "")
    private List<CloudTextbookCatalogResultDTO> children;
}
